\hypertarget{_semaphore_8h}{\section{libemb/inc/\+Semaphore.h 文件参考}
\label{_semaphore_8h}\index{libemb/inc/\+Semaphore.\+h@{libemb/inc/\+Semaphore.\+h}}
}
{\ttfamily \#include \char`\"{}Base\+Type.\+h\char`\"{}}\\*
{\ttfamily \#include $<$fcntl.\+h$>$}\\*
{\ttfamily \#include $<$sys/stat.\+h$>$}\\*
{\ttfamily \#include $<$semaphore.\+h$>$}\\*
{\ttfamily \#include $<$iostream$>$}\\*
\subsection*{类}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{class_semaphore}{Semaphore}
\begin{DoxyCompactList}\small\item\em 信号量抽象类(基于\+P\+O\+S\+I\+X接口) \end{DoxyCompactList}\item 
class \hyperlink{class_n_semaphore}{N\+Semaphore}
\begin{DoxyCompactList}\small\item\em 有名信号量,一般用于进程间通信 \end{DoxyCompactList}\item 
class \hyperlink{class_u_n_semaphore}{U\+N\+Semaphore}
\begin{DoxyCompactList}\small\item\em 无名信号量,一般用于线程间通信 \end{DoxyCompactList}\end{DoxyCompactItemize}
